package com.wuchengdong.web.extend.utils;

public class UserHolder {
    private static final ThreadLocal<Integer> tl = new ThreadLocal<>();

    public static void saveUserId(int id){
        tl.set(id);
    }

    public static int getUserPk(){
        return tl.get();
    }

    public static void removeUserPk(){
        tl.remove();
    }
}
